package com.bizihang.router.service.impl;

import com.bizihang.router.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

/**
 * @author 毕子航 951755883@qq.com
 * @date 2018/06/24
 */
@Slf4j
@Component
public class UserServiceFallback implements UserService {

	@Override
	public Object get(String userId) {
		log.error("用户服务查询服务降级");
		return ResponseEntity.notFound().build();
	}
}
